<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web Art Blog</title>
<link rel="stylesheet" type="text/css" href='../res/css/style.css' />
<script type="text/javascript" src="../res/js/jquery.min.js"></script>
<script type="text/javascript" src="../res/js/jquery.lavalamp.min.js"></script>
<script type="text/javascript" src="../res/js/jquery.easing.min.js"></script>
<script type="text/javascript">
		$(function() {
				$("#menu").lavaLamp({
						fx: "backout",
						speed: 600
				});
		});
</script>
<script type="text/javascript" src="../res/js/tinymce/tiny_mce.js"></script>

<script type="text/javascript">
	 tinyMCE.init({
		// General options
		mode : "textareas",
		convert_urls : false,
		theme : "advanced",
		elements : "question",
		language : "fr",
		plugins : "advimage,fullscreen,preview,emotions,insertdatetime,save", 
		theme_advanced_toolbar_location : "top", 
		theme_advanced_buttons1 :
"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,sub,sup,charmap,|,undo,redo,|,outdent,indent,|,link,unlink,save,|,insertdate",
theme_advanced_buttons2 :
"forecolor,backcolor,|,fontsizeselect,fontselect,formatselect,|,image,emotions,|,cleanup,removeformat,|,fullscreen,preview",
theme_advanced_buttons3 : "",

		
		// Example content CSS (should be your site CSS)
		//content_css : "css/content.css",
		
		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	}); 
</script>
</head>
<body>
<div id="global">
	<div id="global_center">
    <div id="header">
    </div>
    <div id="menu">
      <div>
				<ul id="menuhorizontal">
        	<li id="menuhorizontal"><a href="../index.php">Accueil</a></li>
			<?php if(isset( $_SESSION['roleUser']) && 1 ==$_SESSION['roleUser'])echo '<li id="menu2"><a href=".">Gestion des articles</a></li><li id="menu3"><a href="?page=users.php">Gestion des utilisateurs</a></li><li id="menu4"><a href="?page=list_categories.php">Gestion des categories</a>
</li>';?>
				</ul>
      </div>
      <form action="?page=search.php" name="search" method="post">
     <!--   <div id="search">
          <p style="margin-top:13px;">
            &nbsp;&nbsp;&nbsp;
              <input type="text" name="search" style="width: 160px; height:27px; padding:0px; border:0px; vertical-align:top;" />
              <input type="image" name="rechercher"  style="width:27px; height:28px; border:0; padding:0 0 0 0; cursor:pointer; " src="../res/css/images/spacer.gif" />
          </p>
        </div> -->
			</form>
    </div>
    <div id="body">
    	<div id="connexion">
      	<?php
        if(isset($_SESSION['idUser']))
     			echo $_SESSION["loginUser"] . '&nbsp;&nbsp;&nbsp;<a href="../index.php?page=logout.php">D&eacute;connexion</a>';
      	?>
      </div>
      <div id="contenu">
		<div>
				<?php 
				$page = isset($_GET['page'])?'./'.$_GET['page']:null;
				if (file_exists($page))
				{
					include $page;
				}
				else
				{
					include_once("list_articles.php");
				}
				?>
			</div>
		</div>
    </div>
  </div>
  <div id="footer">
    <!--<div id="bottom_left">
    </div>
    <div id="bottom_center">
    </div>
    <div id="bottom_right">
    </div>-->
  </div>
  <div id="copyright">
  Copyright 2010
  </div>
</div>
</body>
</html>